package com.gjw.designpattern.bulider;

/**
 * 具体建造者
 */
public class LenovoBuilder extends Builder{

    private Computer computer = new Computer();

    @Override
    public void buildCpu() {
        computer.setCpu(new Cpu("Lenovo","lc-1"));
    }

    @Override
    public void buildMainBoard() {
        computer.setMainBoard(new MainBoard("Lenovo","lm-1"));
    }

    @Override
    public void buildRAM() {
        computer.setRam(new RAM("Lenovo","lr-1"));
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
